package ro.isdc.training.jpa.professor.dao;

import java.io.Serializable;

import ro.isdc.training.jpa.professor.domain.Professor;
import ro.isdc.training.jpa.professor.domain.ProfessorId;

/**
 * Professor Data Access Object
 * 
 * @author Andrei Chirila
 */
public interface ProfessorDAO {
	
	/**
	 * Saves the professor to database
	 * 
	 * @param professor the professor to save
	 * @return the id of the saved professor
	 */
	Serializable saveProfessor(Professor professor);
	
	/**
	 * Finds a professor by professor id.
	 * 
	 * @param professorId the professor id
	 * @return the professor found
	 */
	Professor findProfessorByProfessorId(ProfessorId professorId);
}
